Fix simulation code and some other tweaks (lint and vet errors)

Summary: to abide by the new API

Test Plan: it builds

Reviewers: spencerkimball

Reviewed By: spencerkimball

Subscribers: team

Differential Revision: http://phabricator.andybons.com/D7