Added config checking and redo readme.md