implemented new_guid
typos

So yeah, this isn't javascript...