Moved links to top of page
Added toggle control function, and clear data function
Cleaned up code and removed unecessary comments.
Cleaned up code.