Modified miscerrorwindow behavior and added printtotextarea static method