Review changes
Fix sphinx comments
Switch to "enum" for file mode