Removing some legacy PHP code

Changing Zoom and Layout to enums
Method names