Redo the indenting and added some documentation