rearranging some files and updated the Router with the former docready function contents