Corrected and syso in code. Added self-loop testfile