Weblight 13

Tidied code, fixed indentations, added comments.