Added usage function and cleaned up some comments.