Strtok no longer segfaults, added basic documentation