Set code coverage to 100% and cs fixes
Add more error handling
Add some docu and prepare for travis-ci