Added Comments and Try Catch Block