more packaging details. Updating main so that it can be invoked directly