added documentation for new_from_file
renamed key() to keyinfo()
corrected indentation
renamed key() to keyinfo()