major refactor, added viewing options (flavors), fixed text input problems