Studies in statistical physics of complex systems