Changed usn project to be a static library.
Project cleanup. Standardised usage of types across the project and extended configuration file functionality.