Rough implementation of main commands

Signed-off-by: Mansour <mansour@oxplot.com>