Updated script

Added comments
Removed several redundant lines of code
Completed cross structure