Fixed invalid use of time tag and cleaned up document structure