added debugging to Cakefile
fixed cake doc task
merged with upstream