Added all basic functionality except for minification.
Added a lot of PHPDoc.