Initial version of Dandelion code (continuing from svn revision 1406).