Added test files for libraries.
Added better interface commenting and unique id generation.