And on another note when and and with what frequency or ratio should I be researching military techs? during war and peace time...thanks
That's a tougher question to answer, which depends a little more on your style of play. The computer usually won't trade weapons with you, particularly, if you're militarily very powerful, but you can always pick up needed defenses in a pinch. I usually research weapons technologies prior to war, or when a foreign power seems to be getting hostile and well-armed. I usually stop whenever I max out a tier and move over to producing the appropriate defensive tech or a manufacturing/economy tech. Remember that industry is as important (if not more important) than military hardware. I usually have one or two shipyard planets that can crank out almost anything in three weeks or less - this way, even if your vessels are slightly inferior, you will have the advantage in quantity.
You can use the amount of weeks required to research the tech as a basic barometer. If a weapons or defense tech is relatively few weeks, research it until the commitment time spikes up, then move over to other technologies. Don't forget that aside from weaponry and defensive, production capacity, range, ship speed, and sensor range all impact your warmaking ability. In general, though, you don't have to worry about overtly military techs accept before and during wars.