Includes bugfixes for things exposed in the testing process. With this commit, the library should be good for first use.