Symbols fully implemented, minor changes

Cleaned up html.
created function vars to make code more readable
fixed syntax errors