added exception handling since map broke with c++11 standard...
fixed indentations
indented total_dynamix, added stderr.log