refractored Json reading stuff
added BSD as linux version fixed #43