Implemented purging of transport
Added phpdoc