Refactor

Parse args
Code in tables

Signed-off-by: Ramón Ramos <arathael@gmail.com>