Fixed features not getting removed beyond max number
Optimize the code a bit
Fixed wrong logic
Fixed minor style issue
Prevent divisin by zero
Added API to set tile cache size
Merge pull request #83 from OpenGeoscience/fix_features_not_getting_removed

Fixed features not getting removed beyond max number