commented code; fixed minor bug; made small changes to Slice class