Added repo field
Removed printing generated file
Fixed several bugs