made a ton of hlint fixes, and unused pragma removals