added "crop" function
removed commented out code
Merge pull request #1 from dmrlawson/master

Add crop function