Added some comments
Applied changes from Alex branch
Added example .lif files