fix some typos
remove wrong documentation
remove some redundant code
remove unused constructor method
replace shallow copy operations with more explicit shallowCopy method call (for consistency)
remove redundant type cast, fix a typo
Merge pull request #49 from osa1/refactor2

improvements over BasicTransformer and some other stuff