added auto-config

You may want to test this before committing.  It seems to work just fine here, though.

Basically, it eliminates all the need to manually create a config file and library directory.