Main Update 1

Major Overhaul and declaration of many functions!