added phing build file and docs
mode changes