more robust and more options

added options to append Scala-specific metadata
handles cases in which repos and links already exist