Filled in documentation and also added options to turn backtracking on/off for AMA.