The Japanese had a number of intelligence agents working in Hawaii\Pearl harbour, they knew exactly what ships were in port, there locations etc. Hence the instant internment of those Japanese that were resident on the islands.
Very correct, but it was too late by the time that information reached the attack force. Personally I don't think it would have made any difference, the attack would have proceeded as planned, but with no thought of a second attack.