V1.4 of WMC

Includes comments and cleans up the code.