add index and main ts file