better module name resulotion, datetime_, no dot in APP_DIR, fixed log stach frame bug
added code templates