#13 added datatypes to flatten

resolves #13