Added documentation for record.py