renaming src to lib because thats what all the cool kids are doing
fixing some code smells
adding tests for the library module, fixing bug with getting unused