restructured libraries

a plain restructure of library files and a reconfigured .gitignore