implement do_apply
add preconditional asserts
add location info to stands
match function declarations
implement remove_stand; minor comment fixes
implement rotate_stand
make remove_stand static