Docs, code style changes.
Added options to build command, improved logging code