Snipper overhaul

Snipper overhaul, optimizations
Move functions around
Rename variables