cleaned up code in import quant program; fixed several bugs with record retrieval