Project cleaning and certificate page

Added comments to describe the code. Deleted unneccesary code blocks and
general cleaning.
Added certificate webpage which displays when user accepts certificate
(hyperlink to this website from client)