General cleanup

More readable and more friendly for the newbies.
Due to compiler incompatibilities, may replace using typeA = typeB with
typedef...