Replace defines with consts
Rename classes, consts
Rename member variables
Rename functions