Tables in bitbucket markdown syntax
Buggfixes and cleanup of samples.