refactoring:
remove redundant partial function application
fix some typos, cleanup generate-expression function
Merge pull request #10 from vyorkin/feature/refactoring

refactoring