fix undefined variable chain
allow chain names contain more valid characters
Merge pull request #2 from hamann/fix_chain_definitions

Fix chain definitions