changed signature of functions

Now we pass parameters by reference to avoid calling of ctors/dtors and
memory allocations
added line ending normalization settings
fixed spacing

test commit to see if line endings are properly handled now