Cleanup for v1 release

General project clean-up and a few minor bug fixes as well as performance enhancements.