fixed some bugs, and added the php docs into all control classes