Write tables and stock
Merge pull request #19 from marcogarieri/master

Write tables and stock