Phasetransitions :a brief account with modern applications