add replace method
add phpdocs
Unconsisted state of documents, received from different sources #24
code beautify