adding demo project and fixing some warnings and adding va_list support for functions