Added snippet applyer
Corrected snipped applyer
Added test script