Fixed parameter interpretation and data order.
Sort package info elements.
Fix compilation bugs.