fixed bugs, changed portfolio mechanics