updated margin account. updated single run script. bug fix on portfolio calculatio w/ moment