Changed the Startup code to .c file, changed linker script and modified the bat files