Fixed a null pointer exception. Took out some console prints that were put in while writing functionality and are no longer required.

Signed-off-by: Tushar Narayan <tusharnarayan@gmail.com>