First Principles Studies Of 2d Magnets