fixed object passing in methods

there needs to be implemented some error checking because if we pass a null pointer the program segfaults
one way to do it would be to put an inline if statement for every object in the generated headers
add .gitignore files