Closes #7. Add options to change viewportSize.

See #6. Added emitter for consoleMessage.