Updates & test page

Created new test page.
Fixed a few issues.
Wrapped in anonymous functions.