Update activerecords.php

Added comments for methods and code