Added Actor class and code optimization?

Added Actor class and code optimization?
Compiled with no errors/warnings.