Writing the main script.

Signed-off-by: Tihomir Gvero <tihomir.gvero@gmail.com>