Improved phpdocs, better IDE typehinting