Refactored fromBasicDBObject to fillWithBasicDBObject.

Removed unused imports.
Edited the hardware agent to work for our test/program.
Refactored the serviceStep.