Add attributes and function arguments.

Still need to add local variables with temporaries
Bug fixes