changed the document checker functionality and the general layout