refine AFM support

fixes some interference, adds documentation