minor
added timing, changed to implicit sleep
merged libraries and removed redundancies