added library and library demos for sonar, ir and manual