some minor issues fixed. see the modifications.