cleaned up tests. refactored into potsdb package. added readme markdown with pandoc converter