moved the library parts to the more appropriate src subdirectory of lib