added main page, and a bunch of config stuff