Added a couple methods to interval class and added comments