Moved a few objects to unique_ptr

http://stackoverflow.com/questions/13816385/what-are-the-advantages-of-using-nullptr