Refactored the script files into two.
Fixed spacing.
Some style changes.
Moved the code related to

the drafts into it's own files.