Reformatted all code, primarily to clean up indentation.