I think you can find some code inside Aum2 and Aum11. It's old code so it needs some changes, but it's enough to get you started.