some changes

* made some methods use linq
+ byte array serializer