How to write typo plugins

Hi all,

I wrote a quick & dirty image gallery plugin for my Typo blog
(5.0.2). It seems to run all right but I wrote it like I would write
a regular Rails plugin, which means I’m overwriting a few files of
the original typo install.

So … I’m wondering if there is a better way to hook up new views to
the administration interface or extend existing models. Do you guys
have any suggestions?

Thanks,
Ulf