Validate correct method before addition fixes #15
Updated coding style and fixed line ending
Added travis option for PHP 5.5