removed printing and added used of line argument - more commenting needed