Added messages for error and sucess export. Removed debug printing