converting indentation to spaces

no real diffs
adding basic tests to twitch functions