Fix STL iterator errors, misc. cppcheck (#182)

There were some errors in STL iterators.
Initialized values of member variables in constructor.
Removed an unused variable (model_name).
Use prefix ++.
Fixes #182.