Cleaned up functions, put in separate file (so that modifications to the functions don't require re-launching the app)
Merge branch 'master' of https://github.com/heike/sine-illusion