changed debug log invocation
modules moved to modules/ and renamed as *.js
code formatting