Got rid of nonstandard piecewiseblock. Any input file using it should stick to the standard piecewise input format. Introduced bool type to inputrecord.
Added bool type to data stream, changed a few ints to bools (should drastically reduce warnings in MSVC)