Support riseup pads. Code cleanup. Fixes #6.