Added better doc and a config file