Added handler for adding control to project's main.ts
Fixed setter for mainFile property.
Added append function.
Modified generate functions for appending main.ts