Added smaller and greater than, fixed a bug in line 496