Updates after typescript dry run

Minor fixes including setting amd modules for the external modules
example