Upgraded for TypeScript 0.9.1.1

Fixed for new version of TypeScript. Renamed bool to boolean and module should now be require.