reorganized readme and license files
additional comments
add true/false DEBUG options for console.log messages