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