fixed whitespace at end of file
refactored handManager some more