Added sample
Fixed bugs, swapped @@ and %%