Read configuration from a file. Closes #4