added first version of smalldoc