Added basic crop function
Further work on crop function
Added crop function