Modularized the functions LIKE A BOSS!

Simply conquering shit as i see fit.