Added fancy headers. Got basic callbacks working (not used in viz yet). Cleaned some code