Small refactoring;
Some fixes & optimizations;
Implemented forward_list logic in datastream module.