Add panlib and some minor stuff