add costs moved outside distribute costs
added basic docstring to costs distribution