Corrected all the warnings in the php console. Close #34.