added bullet and cleaned up main.cpp