Commented/Documented a lot of client-side code