Cleanup as per YOURLS Coding Standards. Better comments too.