Added more code docs. SOOO tired.