Fixed issue #33

Added comments.
Cleaned up console.error() arguments.