Refactor to flask, some mod additions (still untested), added readme