Reworking capacitor problem to neater code
Removing namespaces, making module use consistent, adding number theory module for reuse.