added nicer frontend, wired up a query and updated typescript usage to 0.9 compliant