Fix executable, added tests for version and added version function
Fixed some tests and removed dependencies