small corrections, resolving warnings and fixing floats