Add batch profile support

Closes #14
Merge remote-tracking branch 'Lagg_version/master'