Added basic config and cli parsing