made console log more complete; fixed for loops