Code/Doc WP standards and internationalising

Updating coding and documenting standards according to the WordPress
Core handbook. Also implementing internationalising, introduced a new
$textdomain property to the class. Half way through, there is still
some more to be done.