Add shabang
Change character recognition to regex
update readme