finished hw2
Fixed url redirection stuff
Fixed small bugs