added options page and a few basic options and some other improvements