performance upgrades
added functions
reworked some stuff
reworked some more  stuff