Formatting and requirements fixes.
Use `salt.utils.fopen`
Make it run `--docked`.