clean up debug messages and obsolete comment
refactored precomputation interface