Fixed unary "*" code generation
Added struct assignment after struct return
Added checking code to type input, output file