Immutability and minor fixes

this fix #1,
also fixes some problem during Math operations,
there's also an example.php