Many improvements (see description)

Moved to template system.
Got progress bar to work
Script queueing (WIP)
Fixed bugs & errors
Spread out code for ease of readability (may do to other files)