more documentation, fixed resource loading for osx