small updates and fixed some bugs particularly in stdranef