Let me be the center of your attention

Added Javadoc and inline commenting on encapsulation and mysql functions