Fixed new libraries, documentation and code cleanup