added the func file

pulling bits from all over