Remove method added,  code commented and some nil pointer handleing added.
Commenting added, nil pointer handling added.
Testing with numbers.