Refactoring

Use namespaces.
Rename "library" to the "src".