fixed interval bug, updated readme, added comments