created class to easily handle error dialogs
implemented class for file operations
implemented main class