added some tests and fixed more copyright headers
refactored namespaces to src dir