Remove .txt file ending from boot and better error handleing