Edited small mistakes. Added console message.