finished comments
starting scan functionality