Added/fixed PHPDocs and shortened inline comments