Added support for ip(8) and tests for other OS samples

added comments for helper functions