added general float test; some bug fixes
diff --git a/src/qcbor_encode.c b/src/qcbor_encode.c
index c3f2dca..fbad5a9 100644
--- a/src/qcbor_encode.c
+++ b/src/qcbor_encode.c
@@ -575,11 +575,15 @@
 }
 
 
+/*
+ Public functions for adding a double. See qcbor/qcbor_encode.h
+*/
 void QCBOREncode_AddDoubleNoPreferred(QCBOREncodeContext *me, double dNum)
 {
    QCBOREncode_AddType7(me, sizeof(uint64_t), UsefulBufUtil_CopyDoubleToUint64(dNum));
 }
 
+
 /*
  Public functions for adding a double. See qcbor/qcbor_encode.h
  */
@@ -595,6 +599,9 @@
 }
 
 
+/*
+ Public functions for adding a float. See qcbor/qcbor_encode.h
+*/
 void QCBOREncode_AddFloatNoPreferred(QCBOREncodeContext *me, float fNum)
 {
    QCBOREncode_AddType7(me, sizeof(uint32_t), UsefulBufUtil_CopyFloatToUint32(fNum));
@@ -602,7 +609,7 @@
 
 
 /*
- Public functions for closing arrays and maps. See qcbor.h
+ Public functions for adding a float. See qcbor/qcbor_encode.h
  */
 void QCBOREncode_AddFloat(QCBOREncodeContext *me, float fNum)
 {