renamed:    bin/amsim.cpp -> bin/amsim.cc
Various minor fixes