replace some magic numbers to const. (NOT VERIFIED)
remove php file
add BSD license. add discalimer.
modify readme