Adding license header.
Minor docu changes.
Minor style changes.
Logging "Failed." when building rpms failed and logging error code on debug.