added php5.4 classes, finished trait, interface and main class.