fix various warnings
fixed lots of divisions
add return types
test new resolutions