Used try statement instead of 'throws'
Removed unecessary comments