refactors home.js and session.js, adds garbage collection to all controllers, completes comment & refactor js