Added more commenting, fixed error when semester does not include a break.