Added write-module-source and various other updates.