Refactored internal logic. Modified cmd options
Added log messages and exceptions based error tracing
Added progress bar