Bug fixes and implementation of simex.sample.size