Add option to change output file extension

You can now specify the output file's extension by providing the argument
`--ext` followed by the new file extension. For example, to convert from
C to C++ code, you could provide --ext cpp.

Also did some renaming for better clarity.

Classes now extend object.