Added support for configuration files, warnings format output, several code style fixes