Corrected types of variables, updated Cargo file, removed unused import