Spins In Thin Films And Nanodevices