added phpdoc comments
added travis ci file