Added switch to test main.
Fixed categoriy parsing; Fixed authenticated requests; Added repl utils.