Adding rest of Standard ML basic functions, minor code updates.