added simulation

Module has been simulated and behaves ok with simple test