4f77818ceb0bef823b30422fa4bce4319b670156: along with this one, adds
method and constructor code generation.
Works towards #36