resize, and other refactoring
Merge pull request #44 from Hawk-It/deleteFunc

resize, and other refactoring