code formatting and corrections in annotations and usage.

Hi Colin,
I have made some minor corrections in the usage of the ActiveRecord method and also updated the annotations.
Kindly accept the pull request.

Thanks.