Added config file support. Started to add curses stuff but it doesn't work yet.