Touch function library

Removed the code i found and replaced it with a library which does the
same but without having to do anything.