this is issue #55

added restrictions and a cleaned up schema file