Edited some comments; changed some tabs to spaces in indents