cleanup

removed some warnings, fixed docs, added missing break