cleaned up added some additional comments