Investigations on the effect of excitonic confinement on nanomagnetic materials adn studies on the optical properties of ferrofluids