updated main with parsing args method and modified func calls in eapi