various
move stuff around, add docstrings
write your cost/constraints in python
minor fixes