merged new ballylib.h with old one