Started to code configurations from file
Fixed NullPointerException