minor improvements using debug
scrpts are in a folder now
ported
Merge branch 'phaLander' into gh-pages