fixed problems with string used as array, causing notices in php 5.5
fixed issues with array_merge illegal casting in php 5.5
fixed missing static function declaration
update readme and unit tests