Cleaned up and modernized the code base (using properties instead of instance variables, not declaring private methods in private interface, NSIntger and CGFloat instead of int and float).