Update lib/SMlite.php