add serializer
Merge pull request #3 from weekwood/master

add serializer