Code cleanup

Cleaned som general framework code and added exceptions and warnings
depending on strict setting. Fixed licensing

Signed-off-by: Tobias Sjondin <tsjondin@op5.com>