Stars and their variability observed from space