s1lite: Massive script overhaul. Merged unneccessary functions with the important ones.