Expanded header comment. Added main() doc.