Added shell-output, read password from environment

Added features I needed; probably not a good idea to use this yet, as I haven't done any sort of in-depth testing.