Added filewriter for later jasmin usage of output. Added stack and
locals calculation for main.