\chapter{Conclusion \& Discussion}\label{chp:conclusion}
\input{conclusion}
-\appendix%
-\label{chp:appendix}
+\appendix\label{chp:appendix}
\chapter{Communication protocol}\label{app:communication-protocol}
\input{appendix-protocol}
\listofalgorithms%
\endgroup
-\printindex
-
\end{document}