Made interval fn better
removed dubiously useful things
added fn for allowing default values for variables