fixed many, many bugs
rm debug statement
renumbered arguments, used inverse of coefficient