Removed empty lines from the end of documents, added doctypes to XMLs

Signed-off-by: Ondrej Skopek <skopekondrej@gmail.com>