Fixed a bug, some syntactical issues and removed some unnecessary copy
constructor and assignment operator definitions.