support for -as => CODE
major documentation restructure