Annotated and cleaned up the source a lil