Committing Wokfenswan's function library, and my own.

Signed-off-by: EsotericReverie <kristian.ks.samuelsson@gmail.com>