Added specs regarding the setting of id
Formating changes, removed tabs and reindented with spaces.