Cosmetic changes
Fix sample and variational_inference methods up to a working state