Moved rule definition to the features.
Small fixes in install scripts etc.