added sleipner data input and optimized I/O