improved readme
extracted route function
moved components into single files
added testing environment