update readme
use constants where possible and add typealias for handler