Fixed warnings. Added helpful documentation section