Code style: Formalized comment style. Changed all %%% comments to %% since they just offset text weirdly. From now on, %% denotes global scope comments and % denotes local scope comments.