fixed small plotting problems and added capability of importing text files (.txt or .opt )