Extracted Sequence class and Symbols module. Not done
Minor refactorings
Use module_function style module