1) Added a basic feature for a Self-check.
2) Added a transition for auto-lock.
3) Made file prettier.

I will continue working on it Tuesday.