The group , often portrayed in folklore, originally existed as a Bavarian secret society in 1777 . Founded by Adam Weishaupt, a lecturer at the University of Bavaria , its goal seemed to be to advocate reason and question superstition and corruption within European society. However , the organiza