refactored build system, made all packages optional
Updated docs, minor bugfixes