The generalized van der Waals theory of wetting; non-local entropy and oscillatory structures