recipe calculations now working. time for cleanup and modularization...