added some more documentation to prime_lib