bug fixes; adding clear() and indexOf() functions
adding remove interval method