Add docs, fix typos, optimize code

Added description for class and methods.
Fixed bug in the coding style.
Optimized methods getFileContext () and __ toString (): removed unused code, fixed sequence of code blocks.

@todo __toString(): for latter block (HTTP 404 error) need use View.