reduce scope
add brackets for switch
features: clean up string arrays
mptable: remove unused stuff
remaining cppcheck signedness/scoping warnings