Implemented Research

Implemented research, read the file comments to see how it works. All
we need to do now is implement the research items.