Modernization

Individual commits explain the actual modernization steps. Should be good enough for the next five years :)