updated runing with jar files. This includes modified functions