Updated documentation, and minor improvements to the API to make it easier to use.
Move the os and resource files into the src, because they should not need to be directly loaded by external tools.