Created initialize function

Removed separate reset function in favor of initialize function