+input functions for remaining string fields e.g. legacy key
+bugfixes and updates of test.R