Added Sin Validation

Sin validation is tested and works. BOOM
Also fixed some other small errors