IP syntax checker function added
New version with bugs' corrections