c206 function implementation + solving sigseg faults
minor code formatation improvements