Structure and crystallization of glasses