Added peek operations
Added comments
Fixed testcase