automaton edit

added comment to am.js