There is not much to explain here, except for the lock mechanism. The lock consist of an electronic door lock I bought some time ago from e-bay (it was a steal). Somewhere hidden inside / behind the wood there is a secret button. When holding this secret button for 3 seconds, a delayed relays is triggered for 4 seconds giving you time to open the door. 

After these 4 seconds the lock (strikeplate) locks again, and the door can be closed ( locked ).

For now this is it. I hope to complete the whole closet in a week or two.

Keep you guys updated!