Added comments and basic functionality to JSpace.