Reformatted using Markdown. Updated some code and text