added boundary-file handling and confusion matrix