fixed error in magnacarta

fileID was hardcoded to 1 in selectAppFile...
Merge branch 'magnacarta' into magnacarta-more-logging