main function in testcode includes basic usage and version-output