added 'type' field to 'Medium' struct
Merge pull request #4 from nd2s/medium

added 'type' field to 'Medium' struct