Make auto-id-generation smart for functions and productions. Slight code reorg.
Updated documentation to cover Automatic Linking.