Updated all docblocks with `@method`, updated `proxy.js` with header decoration for 502s, misc optimizations

Fixing header reformatting