Improved documentation and re-implemented screenshot functionality.
Several bits of code are now documented, and the screenshot call is now located under manageKeys().