updated gitignore for new key
fixed open and save functions and added tests