Fix #2

Instead of locking a file, allow for multiple instances by using
tempfile module.
Add support for config file.

Fix #4