Added cache support for Q2 and Q3. Formatted code with gofmt
Implemented flags instead of environment variables to set addresses for frontend code