Merge pull request #25 from chives/dev

Unified php files' docblocks
Added type casting to abstract fields