Fix code formatting issues and update to 0.2.2