Fixed some standards violations and replaced this->table with $this->tableName
Merge pull request #3 from andytait/master

Fixed some standards violations and fixed issue with $this->table usage