made maxPos a constant and corrected max pos check
added slave data tests and creation fail test
documentation