Added most parts, but disorganized and in turn not working.  Next going to refactor into module pattern for easier testing and debugging.