Additions to library interface, added more documentation