Began Converting to lhs

Converted code file to lhs to later provide better readability and style
for both github browsers and human readers.