Go through all edgecases described in the PHP manual and verify them
Get rid of pushBack()
Add support for BOM