Fixed bug with _id calls and cleaned up some program parameters.