Broke files up by function

Session and log have not been broken up, yet.