added specs and addressed comments