add materials api
Merge pull request #33 from masarakki/materials

add materials api