added new libraries and reset to demo code