Added a little documentation and formatting.