Adding in constructor and some PHPDoc bits.