Version 3

Added more comments and removed some debugging code