Remove unused functions
Encapsulate functions involved in instantiating objects
Code reorganization
Bump version
Update NEWS
Add manual tests for encapsulation
Add name attribute to capsule environment
Change generator object to an environment
Update tests