Added some documentation

Added some documentation and some test code. Enabled console.