all calculations for various preference categories complete. Have not been fully tested