Tidy up the documentation, indentation and making the code compile
Tidy up the documentation, indentation and making the code compile

ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake,ndmitchell/shake