added lup.c and pi.c (and some netbeans junk)