Add README
Replace intval() with (int) for integer conversion