Added more in-code documentation. Commented out inbox func.