Bugfixes, compatibility with OSX

merged additional code that makes it work on OSX and fixed a couple of bugs (output, params)
Better readme