fixed cmds, refactored samples creation

Signed-off-by: unknown <boris@boris-PC2.gspaces.com>