features grouped according to render order

(not sure, whether grouping is really a good idea)
real area calculation
code reorg