Fixed bug of assigning id when place is constructed with spaces. Added a commented line of a regex for allowing prolog-like names.