added rising/falling edge and also fixed package bug