Updated with more comments
Added support for multi-line swarm files
OBS: data file is not yet updated by script