--- a/inst/fibosplitstream.m
+++ b/inst/fibosplitstream.m
@@ -35,15 +35,15 @@
 ## @seealso{fiboenco, fibodeco}
 ## @end deftypefn
 
-function symbols=fibosplitstream(stream)
+function symbols = fibosplitstream (stream)
 
   if nargin < 1
     print_usage ();
   endif
 
-  symbols={};
-  itr=1;
-  L=length(stream);
+  symbols = {};
+  itr = 1;
+  L = length (stream);
 
   ##
   ## Plain & Simple Algorithm. O(N)
@@ -51,30 +51,30 @@
   ## Then split & save. A little tricky to
   ## handle the edge case_ without tripping over.
   ##
-  idx=[];
-  mark=1;
-  prev_bit=stream(1);
-  just_decoded=0;
+  idx = [];
+  mark = 1;
+  prev_bit = stream(1);
+  just_decoded = 0;
 
-  for i=2:L
-    if(~just_decoded && (stream(i)+prev_bit)==2 )
-      symbols{itr}=[stream(mark:i)];
-      mark=i+1;
-      prev_bit=0;
-      just_decoded=1;
-      itr=itr+1;
+  for i = 2:L
+    if (~just_decoded && (stream(i)+prev_bit) == 2)
+      symbols{itr} = [stream(mark:i)];
+      mark = i + 1;
+      prev_bit = 0;
+      just_decoded = 1;
+      itr = itr+1;
     else
-      prev_bit=stream(i);
-      just_decoded=0;
+      prev_bit = stream(i);
+      just_decoded = 0;
     endif
 
   endfor
-  if(mark < L)
-    symbols{itr}=stream(mark:end);
+  if (mark < L)
+    symbols{itr} = stream(mark:end);
   endif
 
 endfunction
 
 %!
-%!assert(fibodeco(fibosplitstream([fiboenco(1:10){:}])),[1:10])
+%!assert (fibodeco (fibosplitstream ([fiboenco(1:10){:}])), [1:10])
 %!