added changes to ensure proper working as a jar file, new project menu option added