fix output of moments (switched array layout)
dont use global using namespace std anymore
minor cleanups
remove broken files