added withdraw method for later use and made some minor improvemnts to
deposit.