spacing tweak
fix psycopg2 name in comments
cleaned up basic model
pulled cost function into own module
basic_model and cost_function