Main php class written, with several major modules